// 使用dotenv读取全局配置文件
const dotenv = require('dotenv')
const fs = require('fs')
const path = require('path')
// 读取公钥和密钥
const PUBLIC_KEY = fs.readFileSync(path.resolve(__dirname, './keys/public.key'))
const PRIVATE_KEY = fs.readFileSync(path.resolve(__dirname, './keys/private.key'))

dotenv.config();


module.exports = {
  APP_PORT,
  MONGODB_URL
} = process.env

module.exports.PRIVATE_KEY = PRIVATE_KEY
module.exports.PUBLIC_KEY = PUBLIC_KEY